package org.dtrd.modules.questionnaire.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.questionnaire.entity.po.DtrdEntQuestionnaireRdReversion;

/**
 * <p>
 * 调查问卷
 * </p>
 *
 * @author QR
 * @since 2022-02-15
 */
@Getter
@Setter
@ApiModel(value = "调查问卷列表信息", description = "调查问卷")
public class QuestionnaireRdVersionListInfo {

    private Integer dataId;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("糖尿病确诊情况, 1-未确诊, 2-已确诊")
    private Integer diabetesDiagnosis;

    @ApiModelProperty("糖尿病类型：1-1型糖尿病,2-2型糖尿病,3-妊娠糖尿病,4-其他类型糖尿病")
    private Integer diabetesType;

    public QuestionnaireRdVersionListInfo(DtrdEntQuestionnaireRdReversion po) {
        dataId = po.getDataId();
        name = po.getName();
        diabetesDiagnosis = po.getDiabetesDiagnosis();
        diabetesType = po.getDiabetesType();
    }
}
